import java.util.Scanner;
/*public class Main {
    public static void main(String[] args) {

                Scanner scanner=new Scanner(System.in);

                int n=scanner.nextInt();

                int sum=1;

                while(n!=1){

                    sum*=n;

                    n--;

                }

                System.out.println(sum);

            }

        }*/



/*public class Main{

    public static void main(String[] args){

        Scanner scanner=new Scanner(System.in);

        int row=scanner.nextInt();

        scanner.close();

        for(int i=1;i<=row;i++){

            for(int j=1;j<=i;j++){

                System.out.print(j+"*"+i+"="+(j*i)+"\t");

            }

            System.out.println();

        }

    }

}*/
import java.util.Scanner;

/*public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        if (n < 1 || n > 9) {
            return;
        }

        for (int i = 1; i <= n; i++) {
            for (int j = 0; j <= 38 - i; j++) {
                System.out.print(" ");
            }
            for (int k = 1; k <= 2 * i - 1; k++) {
                if(k>i){
                    int num=i;
                    while(num>1){
                        num--;
                        System.out.print(num);
                    }
                    break;
                }
                else{
                    System.out.print(k);
                }
            }
            System.out.println();
        }
        scanner.close();
    }
}*/

import java.util.Scanner;

import java.util.Scanner;

/*public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        if (n <= 0 || n > 100) {
            return;
        }
        int[] scores = new int[n];
        for (int i = 0; i < n; i++) {
            scores[i] = scanner.nextInt();
            if (scores[i] < 0 || scores[i] > 10) {
                return;
            }
        }
        double sum = 0;
        int minScore = Integer.MAX_VALUE;
        int maxScore = Integer.MIN_VALUE;
        for (int score : scores) {
            sum += score;
            minScore = Math.min(minScore, score);
            maxScore = Math.max(maxScore, score);
        }
        double averageScore = (sum - minScore - maxScore) / (n - 2);
        System.out.printf("%.2f%n", averageScore);

        scanner.close();
    }
}*/
import java.util.Scanner;

/*public class Main{

    public static void main(String[] args){

        Scanner sc=new Scanner(System.in);

        int[] a=new int[6];

        int[] n=new int[6];

        int i=0;

        for(i=0;i<6;++i){

            a[i]=sc.nextInt();

            n[i]=0;

        }

        int max=0;

        for(i=0;i<6;++i){

            if(a[i]>max){

                max=a[i];

            }

        }

        int k=0;

        for(i=0;i<6;++i){

            if(a[i]==max){

                n[k]=i;

                k++;

            }

        }

        k=0;

        System.out.println(max);

        while(n[k]!=0){

            System.out.printf("%d ",n[k]);

            k++;

        }

    }

}*/
import java.util.Scanner;



public class Main{

    public static void main(String[] args){

        Scanner sc=new Scanner(System.in);

        int n=sc.nextInt();

        for(int i=1;i<=n;i++){

            for(int j=1;j<=i;j++){

                System.out.print(j+"*"+i+"="+i*j+"\t");

            }
            System.out.println();
        }

    }

}